package com.zx.idc.backend.gui.api.commom.factory.compression;

import java.nio.charset.StandardCharsets;

/**
 * Created by hasee on 2019/2/20.
 */
public class NotCompressionImpl implements Compression {
    @Override
    public byte[] enCmp(String str) {
        return str.getBytes(StandardCharsets.UTF_8);
    }

    @Override
    public String deCmp(byte[] str) {
        return new String(str, StandardCharsets.UTF_8);
    }
}
